package com.lanchetech.admin.controller;


import com.lanchetech.admin.service.MeetingService;
import com.lanchetech.bean.request.MeetingPageReq;
import com.lanchetech.bean.request.MeetingUserPageReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.vo.MeetingUserVO;
import com.lanchetech.bean.vo.MeetingVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "会场接口", tags = "会场接口")
@RequestMapping("/api/meeting")
@RestController
public class MeetingController {

    @Autowired
    MeetingService meetingService;

    @ApiOperation("获取会场分页")
    @PostMapping("/getMeetingPage")
    public ResultData<BasePageResp<MeetingVO>> getMeetingPage(@RequestBody MeetingPageReq req) {
        return meetingService.getMeetingPage(req);
    }

    @ApiOperation("获取会场报名分页")
    @PostMapping("/getMeetingUserPage")
    public ResultData<BasePageResp<MeetingUserVO>> getMeetingUserPage(@RequestBody MeetingUserPageReq req) {
        return meetingService.getMeetingUserPage(req);
    }
}
